package com.anyou.mall.goo.goodsComment.mapper;

import java.util.List;
import com.anyou.mall.goo.goodsComment.domain.GooGoodsComment;
import com.anyou.mall.goo.goodsComment.vo.SelectOrderInfoVo;
import com.anyou.mall.goo.goodsComment.vo.SelectUserInfoVO;
import org.apache.ibatis.annotations.Param;

/**
 * 商品评价Mapper接口
 *
 * @author ruoyi
 * @date 2022-03-25
 */
public interface GooGoodsCommentMapper
{
    /**
     * 查询商品评价
     *
     * @param goodsCommentId 商品评价主键
     * @return 商品评价
     */
    public GooGoodsComment selectGooGoodsCommentByGoodsCommentId(Long goodsCommentId);

    /**
     * 查询商品评价列表
     *
     * @param gooGoodsComment 商品评价
     * @return 商品评价集合
     */
    public List<GooGoodsComment> selectGooGoodsCommentList(GooGoodsComment gooGoodsComment);

    /**
     * 新增商品评价
     *
     * @param gooGoodsComment 商品评价
     * @return 结果
     */
    public int insertGooGoodsComment(GooGoodsComment gooGoodsComment);

    /**
     * 修改商品评价
     *
     * @param gooGoodsComment 商品评价
     * @return 结果
     */
    public int updateGooGoodsComment(GooGoodsComment gooGoodsComment);

    /**
     * 删除商品评价
     *
     * @param goodsCommentId 商品评价主键
     * @return 结果
     */
    public int deleteGooGoodsCommentByGoodsCommentId(Long goodsCommentId);

    /**
     * 批量删除商品评价
     *
     * @param goodsCommentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGooGoodsCommentByGoodsCommentIds(Long[] goodsCommentIds);

    /**
     * 回复评价
     * @param goodsCommentId
     * @param replyContent
     * @return
     */
    int replyContent(@Param("goodsCommentId")Long goodsCommentId,@Param("replyContent") String replyContent);

    SelectUserInfoVO selectUserInfo(Long userId);

    SelectOrderInfoVo selectOrderInfo(Long orderId);
}
